package net.mcreator.toolsasfood.procedures;

import net.minecraft.world.entity.Entity;

public class WoodenHoeTPItemZaiXiaoGuoChiXuShiMeiKeFaShengProcedure {
	public static void execute(Entity entity) {
		if (entity == null)
			return;
		if (entity.getPersistentData().getDouble("woodenHoe") % 20 == 0) {
			{
				Entity _ent = entity;
				if (!_ent.level.isClientSide() && _ent.getServer() != null)
					_ent.getServer().getCommands().performCommand(_ent.createCommandSourceStack().withSuppressedOutput().withPermission(4),
							"tp @e[type=item,distance=..20] @s");
			}
		}
		entity.getPersistentData().putDouble("tagName", (entity.getPersistentData().getDouble("woodenHoe") + 1));
	}
}
